<template>
  <div class="user base-page">
    <!-- 日志管理 全部日志 -->
    <template v-if="currentShow['showComponents'] == 'viewAll'">
      <viewAll @sendData="getData" />
    </template>
  </div>
</template>

<script setup>
defineOptions({ name: "Accesslog" });
import { onMounted, ref } from "vue";

import viewAll from "./components/viewAll.vue";

//当前选中的状态
const currentShow = ref({
  showComponents: "",
  type: "",
  row: null,
});

const getData = (data) => {
  currentShow.value = data;
};

onMounted(() => {
  getData({
    showComponents: "viewAll",
    type: "",
  });
});
</script>

<style lang="less" scoped></style>
